package com.pet.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pet.entity.PetRescue;
import com.pet.mapper.PetAnimalMapper;
import com.pet.service.PetRescueService;
import com.pet.mapper.PetRescueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* @author lvlvlv
* @description 针对表【pet_rescue】的数据库操作Service实现
* @createDate 2023-11-10 13:40:54
*/
@Service
@Transactional
public class PetRescueServiceImpl extends ServiceImpl<PetRescueMapper, PetRescue>
    implements PetRescueService{

    @Override
    public boolean updateById(PetRescue entity) {
        return super.updateById(entity);
    }

    @Override
    public boolean save(PetRescue entity) {
        entity.setStatus(0);
        return super.save(entity);
    }
}




